package com.sinothk.gpserver.util;

import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;

/**
 * 编写 Liang Y.T.
 * 时间 2021/8/27 19:29
 */
public class DateUtils {

    public static LocalDateTime getLocalDateTime() {
        Date date = new Date();
        Instant instant = date.toInstant();
        ZoneId zone = ZoneId.systemDefault();
        return java.time.LocalDateTime.ofInstant(instant, zone);
    }
}
